package com.ruoyi.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户收益记录对象 bu_earnings_records
 *
 * @author ruoyi
 * @date 2024-09-12
 */
@Data
public class BuEarningsRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 收益ID */
    @Excel(name = "收益ID")
    private Long earningsId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;
    private String userName;

    /** 收益金额 */
    @Excel(name = "收益金额")
    private BigDecimal earningsAmount;

    /** 收益时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收益时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setEarningsId(Long earningsId)
    {
        this.earningsId = earningsId;
    }

    public Long getEarningsId()
    {
        return earningsId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setEarningsAmount(BigDecimal earningsAmount)
    {
        this.earningsAmount = earningsAmount;
    }

    public BigDecimal getEarningsAmount()
    {
        return earningsAmount;
    }
    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("earningsId", getEarningsId())
            .append("userId", getUserId())
            .append("earningsAmount", getEarningsAmount())
            .append("time", getTime())
            .toString();
    }
}
